package com.zmn.mcc.persistence.interfaces.staff.staffreinstatement;

import com.zmn.mcc.model.entity.staff.staffreinstatement.StaffReinstatement;


/**
 * 描述: 复职信息表数据库访问
 *
 * @author tanghongjun
 * @since 2020-10-22 15:53:17
 **/
public interface StaffReinstatementDAO {
    /**
     * 描述: 根据id查询数据
     *
     * @param reinstateId id
     * @return StaffReinstatement
     * @author tanghongjun
     * @since 2020-10-22 15:53:17
     **/
    StaffReinstatement findById(Integer reinstateId);

    /**
     * 描述: 根据员工ID查询数据
     *
     * @param staffId 员工id
     * @return StaffReinstatement
     * @author tanghongjun
     * @since 2020-10-22 15:53:17
     **/
    StaffReinstatement findByStaffId(Integer staffId);

    /**
     * 描述: 根据id修改数据 id为必传
     *
     * @param staffReinstatement 待修改数据
     * @return java.lang.Integer
     * @author tanghongjun
     * @since 2020-10-22 15:53:17
     **/
    Integer updateByKey(StaffReinstatement staffReinstatement);

    /**
     * 描述: 新增数据
     *
     * @param staffReinstatement 待新增数据
     * @return java.lang.Integer 主键key
     * @author tanghongjun
     * @since 2020-10-22 15:53:17
     **/
    Integer insert(StaffReinstatement staffReinstatement);

    /**
     * 描述: 根据主键删除数据
     *
     * @param reinstateId
     * @return: 执行结果码
     * @auther: tanghongjun
     * @since: 2020-10-22 15:53:17
     */
    Integer deleteByKey(Integer reinstateId);

}
